﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SHDQGSWEB.Models
{
    public class NavigatorBar
    {
        public List<NavigatorItem> Items;

        public NavigatorBar()
        {
            Items= new List<NavigatorItem>();
        }
        public void AddItem(NavigatorItem item)
        {
            this.Items.Add(item);
        }
        public void ReplaceItem(NavigatorItem item,int index)
        {
            this.Items[index] = item;
        }
        public class NavigatorItem
        {
            private string _title;
            private string _controller;
            private string _action;
            private string _value;

            public string Title
            {
                get { return _title; }
                set { _title = value; }
            }

            public string Controller
            {
                get { return _controller; }
                set { _controller = value; }
            }

            public string Action
            {
                get { return _action; }
                set { _action = value; }
            }

            public string Value
            {
                get { return _value; }
                set { _value = value; }
            }

            public NavigatorItem()
            {
            }

            public NavigatorItem(string title)
            {
                this._title = title;
            }

            public NavigatorItem(string title, string controller)
            {
                this._title = title;
                this._controller = controller;
            }

            public NavigatorItem(string title, string controller, string action)
            {
                this._title = title;
                this._controller = controller;
                this._action = action;
            }

            public NavigatorItem(string title, string controller, string action, string value)
            {
                this._title = title;
                this._controller = controller;
                this._action = action;
                this._value = value;
            }
        }

        
    }
}